/*
 * FracEx.h
 *
 *  Created on: Aug 7, 2011
 *      Author: dino
 */

#ifndef FRACEX_H_
#define FRACEX_H_
#include "Expression.h"
class FracEx : public Expression{
public:
	FracEx(Expression* numerator, Expression* denominator);
	virtual ~FracEx();

	bool simplify();

	Expression* add(Expression* expression);
	Expression* substract(Expression* expression);

	Expression* addToInteger(IntegerEx* integer);
	Expression* substractFromInteger(IntegerEx* integer);

	void toString(ostream& out);

};

#endif /* FRACEX_H_ */
